home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d1 / bnchutil.arc / FAT.DOC < prev    next >
Text File  |  1991-04-30  |  9KB  |  232 lines

  1.  
  2.                                    FAT 1.08
  3.                                    ---------
  4.  
  5.         FAT is a simple program that can be used to display the chain of
  6.         clusters (disk allocation units) that belong to a disk file, to
  7.         determine which file "owns" a specified cluster or sector,
  8.         and to display general information about a disk.
  9.  
  10.         FAT is a passive program; that is, it does not perform any
  11.         functions that alter disk data.  It is an inquiry program only.
  12.  
  13.         NOTE: like CHKDSK, FAT may change the default drive and/or
  14.         directory while it is working.  If the program is interrupted,
  15.         no harm will be done, but you may find that your drive/directory
  16.         has been changed.
  17.  
  18.         Version 1.08 corrects problems with large disk partitions under
  19.         DOS 4.0.
  20.  
  21.         Syntax summary
  22.         --------------
  23.  
  24.             fat filespec [/D] [/H] [/I]     (display chain)
  25.             fat [d:] /Cn [/D] [/H] [/I]     (owner of cluster n)
  26.             fat [d:] /Sn [/D] [/H] [/I]     (owner of sector n)
  27.             fat [d:] /I                     (disk info only)
  28.  
  29.         Switches:
  30.  
  31.             /C  Cluster owner
  32.             /D  Decimal output
  33.             /H  Hex output
  34.             /I  info
  35.             /S  Sector owner
  36.  
  37.         The commands are detailed below.
  38.  
  39.  
  40.         Displaying the cluster chain for a file or directory
  41.         ----------------------------------------------------
  42.  
  43.         The syntax for this function is:
  44.  
  45.                 fat [d:]path
  46.                 fat [d:][path]file
  47.  
  48.         If only a path (and optional drive) is present, the chain of
  49.         clusters belonging to the subdirectory file itself is displayed.
  50.         If a filename is present, the chain of clusters belonging to the
  51.         named file is displayed.  The filename may contain wildcards, in
  52.         which case the chain for all matching files will be displayed.
  53.  
  54.         Examples:
  55.  
  56.             fat c:\dir              ; Display chain for c:\dir itself,
  57.                                     ; i.e., which clusters does the
  58.                                     ; subdirectory file occupy.
  59.  
  60.             fat c:\dir\file1.txt    ; Display chain for file1.txt
  61.  
  62.             fat c:\dir\*.*          ; Display chain for all files
  63.                                     ; in c:\dir
  64.  
  65.         FAT interprets missing portions of the filename to be equivalent
  66.         to "*".  Thus:
  67.  
  68.             fat *       == fat *.*
  69.             fat foo     == fat foo.*
  70.             fat foo*    == fat foo*.*
  71.  
  72.         If you wish to display the chain for file "foo", but not
  73.         "foo.txt", use an explicit ".", as in:
  74.  
  75.             fat foo.
  76.  
  77.  
  78.         Finding the owner of a cluster or sector
  79.         ----------------------------------------
  80.  
  81.         The syntax for this function is:
  82.  
  83.             fat [d:] /Cn            ; Find owner of cluster N
  84.             fat [d:] /Sn            ; Find owner of sector N
  85.  
  86.         For example:
  87.  
  88.             fat /C160               ; Find owner of cluster 160
  89.  
  90.             fat b: /C112H           ; Find owner of cluster 112H
  91.                                     ; on drive B.
  92.  
  93.             fat /S14D               ; Find owner of sector 014DH
  94.  
  95.         See below for more information on how the input numbers are
  96.         interpreted (as decimal or hex).
  97.  
  98.  
  99.         Disk information
  100.         ----------------
  101.  
  102.         You can append /I (Info) to any FAT command to display general
  103.         information about the selected disk.  You can also run FAT with
  104.         only a /I parameter (and optional drive) to just display the
  105.         information.
  106.  
  107.         Examples:
  108.  
  109.             fat /I                  ; Info about default drive
  110.             fat B: /I               ; Info about drive B
  111.             fat c:\foo/i            ; Chain for foo, plus info
  112.             fat /i /c166            ; Owner of cluster 166H, plus info
  113.  
  114.  
  115.         Input radix
  116.         -----------
  117.  
  118.         Cluster and sector numbers for the /C and /S parameters are
  119.         assumed to be decimal, unless the numbers contain a hex digit
  120.         (A-F) or are suffixed with an 'H':
  121.  
  122.             /c119       ; decimal
  123.             /s11A       ; hex
  124.             /c116H      ; hex
  125.  
  126.  
  127.         Output radix
  128.         ------------
  129.  
  130.         The output radix defaults to the input radix; that is, if your
  131.         sector or cluster is input in decimal, the output will be
  132.         displayed in decimal.  Where there is no numeric input (for
  133.         example, "fat c:*.*"), decimal is assumed.
  134.  
  135.         You can specify an explicit output radix by using the /H (hex)
  136.         or /D (decimal) switches:
  137.  
  138.             fat /c116 /h    ; Input decimal, output hex
  139.             fat /s12A /d    ; Input hex, output decimal
  140.             fat c:*.sys     ; No input, output decimal
  141.             fat c:*.sys /h  ; No input, output hex
  142.  
  143.         Output radix has no effect on the /Info display, which is mostly
  144.         decimal.
  145.  
  146.  
  147.         Media types warning
  148.         -------------------
  149.  
  150.         FAT knows about certain media types (360K, 1.44M, fixed disks,
  151.         etc.).  If FAT encounters a type about which it knows nothing,
  152.         it will continue to run but display a warning.  If this warning
  153.         is displayed, the results may or may not be accurate (and in
  154.         fact, the program may or may not run to completion!).  If the
  155.         results appear to be reasonable, they are probably accurate.
  156.  
  157.         Versions prior to 1.06 would simply cancel when an unknown type
  158.         was encountered.
  159.  
  160.  
  161.         Revision history
  162.         ----------------
  163.         Version 1.08 - 01/08/90
  164.             Corrected some problems with large partitions
  165.  
  166.         Version 1.07 - 12/18/89
  167.             Support for large partitions under DOS 4.0
  168.  
  169.         Version 1.06 - 8/3/89
  170.             Support for media type F0
  171.             Allowed program to proceed with unknown media types
  172.  
  173.         Version 1.05 - 6/13/88
  174.             Converted to Microsoft C
  175.             Fixed a problem with subdirectory names containing '.'
  176.  
  177.         Versions 1.03/1.04 - 1/21/87 and 7/15/87
  178.             Fixed a few problems with 16-bit FATs
  179.  
  180.         Version 1.02 - 9/13/86
  181.             First public release
  182.  
  183.  
  184.         Copyright/License/Warranty
  185.         --------------------------
  186.  
  187.         This document and the program file FAT.EXE ("the software") are
  188.         copyrighted by the author.  The copyright owner hereby licenses
  189.         you to: use the software; make as many copies of the program and
  190.         documentation as you wish; give such copies to anyone; and
  191.         distribute the software and documentation via electronic means.
  192.         There is no charge for any of the above.
  193.  
  194.         However, you are specifically prohibited from charging, or
  195.         requesting donations, for any such copies, however made; and
  196.         from distributing the software and/or documentation with
  197.         commercial products without prior permission.  An exception is
  198.         granted to not-for-profit user's groups, which are authorized to
  199.         charge a small fee (not to exceed $7) for materials, handling,
  200.         postage, and general overhead.  NO FOR-PROFIT ORGANIZATION IS
  201.         AUTHORIZED TO CHARGE ANY AMOUNT FOR DISTRIBUTION OF COPIES OF
  202.         THE SOFTWARE OR DOCUMENTATION, OR TO INCLUDE COPIES OF THE
  203.         SOFTWARE OR DOCUMENTATION WITH SALES OF THEIR OWN PRODUCTS.
  204.  
  205.         THIS INCLUDES A SPECIFIC PROHIBITION AGAINST FOR-PROFIT
  206.         ORGANIZATIONS DISTRIBUTING THE SOFTWARE, EITHER ALONE OR WITH
  207.         OTHER SOFTWARE, AND CHARGING A "HANDLING" OR "MATERIALS" FEE OR
  208.         ANY OTHER SUCH FEE FOR THE DISTRIBUTION.  NO FOR-PROFIT
  209.         ORGANIZATION IS AUTHORIZED TO INCLUDE THE SOFTWARE ON ANY MEDIA
  210.         FOR WHICH MONEY IS CHARGED.  PERIOD.
  211.  
  212.         There is no restriction on the use of this software in
  213.         commercial or institutional environments.
  214.  
  215.         No copy of the software may be distributed or given away without
  216.         this document; and this notice must not be removed.
  217.  
  218.         There is no warranty of any kind, and the copyright owner is not
  219.         liable for damages of any kind.  By using this free software,
  220.         you agree to this.
  221.  
  222.         The software and documentation are:
  223.  
  224.                 Copyright (C) 1986, 1987, 1988, 1989 by
  225.                          Christopher J. Dunford
  226.                         The Cove Software Group
  227.                              P.O. Box 1072
  228.                         Columbia, Maryland 21044
  229.  
  230.                              (301) 992-9371
  231.                      CompuServe 76703,2002 [IBMNET]
  232.